package com.lingnan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingnan.entity.po.Interview;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface InterviewMapper extends BaseMapper<Interview> {

    /**
     * 根据hr姓名更新面试记录中的hr信息
     */
    @Update("update interview set hr_name = #{newName} where hr_name = #{oldName};")
    int updateHrNameBatch(@Param("oldName") String oldName, @Param("newName") String newName);
}
